import axios from "axios";
import { MessageBox, Message } from "element-ui";
import { getToken, setToken, removeToken } from "@/utils/auth";

const service = axios.create({
	baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
	withCredentials: true, // send cookies when cross-domain requests
	timeout: 10000000, // request timeout
});

service.interceptors.request.use();

service.interceptors.response.use();

export default service;
